import request from '@/utils/request'

// 查询职能部门列表
export function listFunctDept(query) {
  return request({
    url: '/dataBase/functDept/list',
    method: 'get',
    params: query
  })
}

// 查询职能部门详细
export function getFunctDept(id) {
  return request({
    url: '/dataBase/functDept/' + id,
    method: 'get'
  })
}

// 新增职能部门
export function addFunctDept(data) {
  return request({
    url: '/dataBase/functDept',
    method: 'post',
    data: data
  })
}

// 修改职能部门
export function updateFunctDept(data) {
  return request({
    url: '/dataBase/functDept',
    method: 'put',
    data: data
  })
}

// 删除职能部门
export function delFunctDept(id) {
  return request({
    url: '/dataBase/functDept/' + id,
    method: 'delete'
  })
}
